package org.example.day20240819;

public class Point {
    double x;
    double y;

    public Point(double x, double y){
        this.x = x;
        this.y = y;
    }

    public double getDistance(Point orther_point){
        return  Math.sqrt(Math.pow((this.x - orther_point.x),2)
                +Math.pow((this.y - orther_point.y),2));
    }

    @Override
    public String toString() {
        return "("+this.x+","+this.y+")";
    }
}
